package org.kfive.nova.hbase;

import org.apache.hadoop.hbase.client.Get;
import org.apache.hadoop.hbase.client.Scan;

import java.io.IOException;

/**
 * Created by admin on 2017-05-12.
 */
public class HbaseClient {

    public static void main(String[] args) throws IOException {
//        Configuration conf = HBaseConfiguration.create();
//        FileSystem fs = FileSystem.get(conf);
//        Path path = new Path(fs.getUri()+Path.SEPARATOR + "test.jar");
//        HTableDescriptor htd = new HTableDescriptor("testtable");
//        htd.addFamily(new HColumnDescriptor("colfam1"));
//        htd.setValue("COPROCESSOR$1",path.toString()+"|");
//        HBaseAdmin admin = new HBaseAdmin(conf);
//        admin.createTable(htd);
        System.out.println("a".getBytes().length);
        Scan scan = new Scan();
        Get get = new Get("1".getBytes());


    }

}
